/* 优雅风格的Markdown主题 */
.markdown-body.elegant {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  padding: 20px;
  max-width: 750px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.markdown-body.elegant h1,
.markdown-body.elegant h2,
.markdown-body.elegant h3,
.markdown-body.elegant h4,
.markdown-body.elegant h5,
.markdown-body.elegant h6 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 1em;
  color: #222;
}

.markdown-body.elegant h1 {
  font-size: 2.2em;
  line-height: 1.2;
  text-align: center;
  margin-top: 0.8em;
  margin-bottom: 1.2em;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.markdown-body.elegant h2 {
  font-size: 1.7em;
  line-height: 1.3;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
  font-weight: 400;
}

.markdown-body.elegant h3 {
  font-size: 1.4em;
  font-weight: 400;
}

.markdown-body.elegant h4 {
  font-size: 1.2em;
  font-weight: 400;
}

.markdown-body.elegant p {
  margin-bottom: 1.5em;
  font-size: 1.05em;
  line-height: 1.8;
}

.markdown-body.elegant a {
  color: #990000;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 0, 0, 0.3);
}

.markdown-body.elegant a:hover {
  border-bottom: 1px solid #990000;
}

.markdown-body.elegant blockquote {
  margin: 1.5em 0;
  padding: 0 1.5em;
  border-left: 3px solid #990000;
  font-style: italic;
  color: #555;
}

.markdown-body.elegant code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background-color: #f8f8f8;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #990000;
}

.markdown-body.elegant pre {
  background-color: #f8f8f8;
  padding: 16px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.markdown-body.elegant pre code {
  background-color: transparent;
  padding: 0;
  color: #333;
}

.markdown-body.elegant img {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
  border-radius: 2px;
}

.markdown-body.elegant hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

.markdown-body.elegant ul,
.markdown-body.elegant ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.markdown-body.elegant li {
  margin-bottom: 0.5em;
}

.markdown-body.elegant table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #eee;
}

.markdown-body.elegant table th,
.markdown-body.elegant table td {
  border: 1px solid #eee;
  padding: 10px 15px;
  text-align: left;
}

.markdown-body.elegant table th {
  background-color: #f8f8f8;
  font-weight: 600;
}

.markdown-body.elegant table tr:nth-child(even) {
  background-color: #fafafa;
}

/* 优雅主题特有的样式 */
.markdown-body.elegant strong {
  font-weight: 600;
  color: #555;
}

.markdown-body.elegant em {
  font-style: italic;
}

.markdown-body.elegant h1:after {
  content: "";
  display: block;
  width: 100px;
  margin: 0.8em auto 0;
  border-bottom: 1px solid #eee;
} 